﻿<!--
TODO:

Should be able to click on a syllable to accent it or highlight it in the original text.
If a syllable is the last in the word and it is not a full stop/question, there should be a simple way of cycling through it {having a comma and a quarter bar}, {having a comma and a mediant}, {having a comma}, {being nothing}
-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>Readings Tool</title>
  <link rel=chrome-webstore-item" href="https://chrome.google.com/webstore/detail/mkhgaijffgijgkolifpoaijimncdakkd" />
  <link rel="stylesheet" type="text/css" href="style.css" />
  <link rel="stylesheet" type="text/css" href="css/smoothness/jquery-ui-1.8.16.custom.css" />
  <script src="jquery.min.js" type="text/javascript"></script>
  <script src="jquery-ui-1.8.16.custom.min.js" type="text/javascript"></script>
  <script src="jgabc.js" type="text/javascript"></script>
  <script src="psalmtone.js" type="text/javascript"></script>
  <script src="jszip.js" async type="text/javascript"></script>
  <script src="sink.js"></script>
  <script src="audiolet.js"></script>
  <script src="readings.js"></script>
  <!-- <script src="jszip-deflate.js" async type="text/javascript"></script>-->
  <script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-24502736-2']);
  _gaq.push(['_trackPageview']);
  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
  </script>
</head>
<body class='sans'>
<style>
table.bordered {
  width:100%;
}
table {
  border-collapse:collapse;
}
td{
  padding-left:4px;
  padding-right:4px;
}
tr.bordered>td {
  vertical-align:top;
  border-width:1px;
  border-style:solid;
}
#chant-parent2{
  width:10.3in;
  max-width:100%;
  margin:auto;
  height:100%;
}
#chant-parent{
  border:1px solid #aaa;
  overflow-y:auto;
  height:100%;
}
#chant-pad{
  padding:0 0.1in;
}
#chant-preview,#verses{
  margin:0.1in auto auto;
}
#verses{
  width:100%;
  font-family:'OFL Sorts Mill Goudy TT';
  font-size:18px
}
textarea{
  padding:0px;
}
.tap{
  padding-right:2px;
}
</style>
<div class="print-hide">
<div style="float:left"><a href="transcriber.html">GABC Transcription Tool</a></div>
<div style="float:right"><a href="#" target="_blank" id="lnkGabc">Generate PDF</a></div>
<div style="width:100%;text-align:center;padding-bottom:4pt"><a href="psalmtone.htm">Psalm Tone Tool</a></div>
<table class="bordered"><tr class="bordered"><td><label for="selTones">Tone: </label><select id="selTones"></select><input type="checkbox" id="cbSolemn" name="solemn"/><label for="cbSolemn">Solemn Tone</label>
<input type="button" id="btnDelTone" value="Delete Current Tone"/><input type="button" id="btnNewTone" value="Create New Tone"/><br/>
<label for="txtClef">Clef: </label><input type="text" id="txtClef" style="width:15pt"/><br/>
<label for="txtRecitingTone">Reciting Tone: </label><input type="text" id="txtRecitingTone" style="width:15pt"/><br/>
<label for="txtMediant">Mediant GABC: </label><input type="text" id="txtMediant" style="width:60pt"/><br/>
<label for="txtFullStop">Full Stop GABC: </label><input type="text" id="txtFullStop" style="width:60pt"/><br/>
<label for="txtQuestion">Question GABC: </label><input type="text" id="txtQuestion" style="width:60pt"/><br/>
<label for="txtConclusion">Conclusion GABC: </label><input type="text" id="txtConclusion" style="width:90pt"/><br/>
</td><td><label for="versetext">Text</label>
&nbsp;&nbsp;<input type="checkbox" id="cbEnglish" checked/><label for="cbEnglish" title="If you are working with English text, check this box, and the text will be run through the lyric hyphenator at juiciobrennan.com; it will only contact this site once every 5 seconds so you may have to wait a bit at times for the word syllabification to correct itself.  Unknown words are assumed to be a single syllable, and custom syllable breaks may be entered using = as in 'syl=la=ble'">English</label>
<br/><div class="tap"><textarea id="versetext" lang="latin" style="height: 120pt; width: 100%;">IN those days a decree went out from Caesar Augustus
that the whole world should be enrolled*.
This was the first enrollment,
when Quirinius was governor of Sy*ria.
So all went to be enrolled*,, each to his own town*.
And Joseph too went up from Galilee from the town of Nazareth
to Judea,, to the city of David that is called Be*thlehem,
because he was of the house and family of David,
to be enrolled with Mary, his betrothed, who was with child.
While they were there,+
the time came for her to have her child*,
and she gave birth to her firstborn son*.
She wrapped him in swaddling clothes and laid him in a manger,
because there was no room for them in the inn*=.

Now there were shepherds in that region living in the fields+
and keeping the night watch over their flock*.
The angel of the Lord appeared to them+
and the glory of the Lord shone around them,
and they were struck with great fear.
The angel said* to them,
"Do not be afraid*;
for behold, I proclaim to you good news of great joy
that will be for all the people.
For today in the city of David
a savior has been born for you who is Christ and Lord*.
And this will be a sign* for you:
you will find an infant wrapped in swaddling clothes
and lying in a manger."
And suddenly there was a multitude of the heavenly host with the angel,+
praising God and saying:
"Glory to God in the highest,
and on earth peace to those on whom his favor rests*."</textarea></div>
</td></tr>
<tr class="bordered"><td>
<label for="selFormat" title="Select a 'gabc' format to format all verses using gabc.&#10;New formats can be created with the 'Create New Format' button, and all formats can be edited using the panel to the right.">Format as: </label><select id="selFormat"></select><input type="button" id="btnDelFormat" value="Delete Current Format"/><input type="button" id="btnNewFormat" value="Create New Format"/>
<br/><input type="checkbox" id="cbOnlyVowels"/><label for="cbOnlyVowels" title="Only apply the formatting to the vowel rather than to the entire syllable, and only to first of any preparatory syllables rather than to all preparatory syllables.">Only format vowels</label>
<br/><input type="checkbox" id="cbUsePunctaCava"/><label for="cbUsePunctaCava" title="Use a punctum cavum wherever a variable number of notes will be present depending on the specific verse.">Use puncta cava</label>
</td><td style="border-left-style:solid;">
<table class="">
<tr><td><label for="txtBeginPrep" title="This text will be added just before each preparatory syllable.">Begin Preparatory Syllable:</label></td><td><input type="text" id="txtBeginPrep"/></td>
<td style="padding-left:12pt;"><label for="txtEndPrep" title="This text will be added just after each preparatory syllable.">End Preparatory Syllable:</label></td><td><input type="text" id="txtEndPrep"/></td></tr>
<tr><td><label for="txtBeginAccented" title="This text will be added just before each accented syllable that figures in the mediant/termination.">Begin Accented Syllable:</label></td><td><input type="text" id="txtBeginAccented"/></td>
<td style="padding-left:12pt;"><label for="txtEndAccented" title="This text will be added just after each accented syllable that figures in the mediant/termination.">End Accented Syllable:</label></td><td><input type="text" id="txtEndAccented"/></td></tr>
<tr><td><label for="txtPrefix" title="Inserted before every verse.&#10;$c will be replaced by the verse number.">Verse Prefix:</label></td>
<td><input type="text" id="txtPrefix"/></td>
<td style="padding-left:12pt;"><label for="txtSuffix" title="Inserted after every verse.&#10;$c will be replaced by the verse number.">Verse Suffix:</label></td>
<td><input type="text" id="txtSuffix"/></td></tr>
<tr><td><label for="txtNbsp" title="Used before : * and † so that lines won't be broken up with one of these characters starting the line.">Non-breaking space:</label></td><td><input type="text" id="txtNbsp"/></td>
<td style="padding-left:12pt;"><label for="txtVersesName" title="Name of the verses file in Chrome when dragging the link to a file explorer window.  $psalm will be replaced with the psalm number (or Magnificat, etc.) and $tone will be replaced with the tone (e.g., 8gstar).">Verses Filename:</label></td><td><input type="text" id="txtVersesFilename"/></td>
</tr>
</table>
</td></tr>
</table>
<div class="tap"><label for="editor" title="You can put GABC headers in this text box if you want them included in the GABC file download link below.  Any headers you type in will persist in local storage between sessions.">GABC</label><br/><textarea id="editor" spellcheck="false" style="height: 64px; width: 100%;"></textarea></div>
</div>
<div id="chant-parent2">
  <div id="chant-parent">
    <div id="chant-pad">
      <div id="chant-preview"></div>
      <div id="verses"></div>
    </div>
  </div>
</div>
</body>
</html>